//属性管理分类相关类型
export interface ResponseData {
  code: number
  message: string
  ok: boolean
}
//分类数据类型
export interface Category {
  id?: number | string
  name: string
  category1Id?: number
  category2Id?: number
}
//分类接口响应接口数据类型
export interface CategoryResponseData extends ResponseData {
  data: Category[]
}


//属性值对象数据类型
export interface AttrValue {
  id?: number
  valueName: string
  attrId?: number
  flag?: boolean
}
//储存每一个属性值的数组类型
export type AttrValueList = AttrValue[]
//属性数据类型
export interface Attr {
  id?: number|string
  attrName: string
  categoryId: number|string
  categoryLevel: number
  attrValueList: AttrValueList
}
//属性对象的数组数据类型
export type AttrList = Attr[]
//属性接口返回的数据类型
export interface AttrResponseData extends ResponseData {
  data: AttrList
}
